About the Demo

Simple demo application to show using Eco with ASP.Net Web Controls.

The example is deliberately simple, in that it only illustrates the steps needed to use Eco with ASp.NET, not how ASP.NET pages should be formatted.

The example contains two forms, one displaying a list of all orders and one displaying a single order.

Setup Information

Compile and run. This example has no persistence.

Running the Demo

  1. Start the IDE.

Things to note:

In the model:

Order is a resesrved word, so the tagged values TableName (on the Order) and ColumnName (on OrderItem.Order) must be set to something else.

In Web.conf

the following must be inserted in the <compilation> section. The version number may be different on your installation.

<compilation defaultLanguage="c#" debug="true"> <assemblies> <add assembly="Borland.Eco.Handles, Version=10.0.0.0, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b"/> <add assembly="Borland.Eco.Interfaces, Version=10.0.0.0, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b"/> <add assembly="Borland.Eco.Persistence, Version=10.0.0.0, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b"/> <add assembly="Borland.Eco.Persistence.Bdp, Version=10.0.0.0, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b"/> </assemblies> </compilation>

General:

The EcoSpace of the roothandles must be set, and the project compiled in order for designtime support for OCL to work.

Further, the OrderForm.rhRoot.StaticValueType must be set to Order, since the root for the for is an Order object.

The connectionstring of EcoSpace.bdpConnection1 must be pointed at the database.

AddExternalId must be set to true on all handles that are to be connected to a DataGrid, and DataGrid.DataKeyField must be set to ExternalId

The The derived values in the Grid have been created by first adding another property to the bindinglist in ElementHandle.Columns, and then binding to it in the Grid. Note that the column in the Grid must me manually marked as ReadOnly. The Webform databinding doesn't detect this.